﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="ConditionalEndMessage.aspx.cs" Inherits="Votations.NSurvey.WebAdmin.ConditionalEndMessage"   ValidateRequest="false"%>
<%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
<%@ Register TagPrefix="uc1" TagName="PageBranchingRulesControl" Src="UserControls/PageBranchingRulesControl.ascx" %>
<%@ Register TagPrefix="uc1" TagName="SurveyMessageConditonsControl" Src="UserControls/SurveyMessageConditonsControl.ascx" %>
<%@ Register TagPrefix="uc1" TagName="SurveyListControl" Src="UserControls/SurveyListControl.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentLinkAction" runat="server">
    <span class="action-span"><a href="SurveyPrivacy.aspx">
        <%=GetPageResource("PrivacySettingsHyperlink")%></a> &nbsp;&nbsp;   <a href="SurveyOptions.aspx">
        <%=GetPageResource("PrivacySettingsHyperlink")%></a></span>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentTitle" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">
<LINK href="css/nsurveyadmin.css" type=text/css rel=stylesheet >
<table class=TableLayoutContainer cellSpacing=0 cellPadding=0>
  <tr>
    <td class=contentCell vAlign=top>
      <TABLE class=Innertext>
        <TR>
          <TD colSpan=2><FONT class=Titlefont 
            ><asp:literal id=AddNewConditionTitle 
             runat="server" 
            EnableViewState="False"></asp:literal></FONT><BR 
            ><IMG src="images/Linebreak.Gif" > </TD></TR>
        <TR>
          <TD>&nbsp;&nbsp; </TD>
          <TD><asp:label id=MessageLabel runat="server" ForeColor="Green" Visible="False"></asp:label>
            <TABLE class=Innertext>
              <TR>
                <TD noWrap width=140><STRONG 
                  ><asp:literal id=MessageConditionLabel 
                   runat="server" EnableViewState="False" 
                  Text="Condition :"></asp:literal></STRONG></TD>
                <TD width=480><asp:dropdownlist id=MessageConditionDropdownlist runat="server" AutoPostBack="True" onselectedindexchanged="MessageConditionDropdownlist_SelectedIndexChanged"></asp:dropdownlist></TD></TR>
              <TR>
                <TD noWrap width=140><STRONG 
                  ><asp:literal id=QuestionLabel 
                   runat="server" 
                  EnableViewState="False">Question :</asp:literal></STRONG> </TD>
                <TD width=480><asp:dropdownlist id=QuestionFilterDropdownlist runat="server" AutoPostBack="True" onselectedindexchanged="QuestionFilterDropdownlist_SelectedIndexChanged"></asp:dropdownlist></TD></TR>
              <TR>
                <TD width=140><STRONG 
                  ><asp:label id=ConditionalLabel runat="server">Conditional operator :</asp:label></STRONG></TD>
                <TD><asp:dropdownlist id=LogicDropDownList runat="server" AutoPostBack="True" onselectedindexchanged="LogicDropDownList_SelectedIndexChanged">
</asp:dropdownlist></TD>
              <TR>
                <TD width=140><STRONG 
                  ><asp:label id=AnswerLabel runat="server">Answer :</asp:label></STRONG></TD>
                <TD><asp:dropdownlist id=AnswerFilterDropdownlist runat="server" AutoPostBack="True" onselectedindexchanged="AnswerFilterDropdownlist_SelectedIndexChanged"></asp:dropdownlist></TD></TR>
              <TR>
                <TD width=140><STRONG><asp:label id=TextEvaluationConditionLabel runat="server">Text evaluation condition :</asp:label></STRONG></TD>
                <TD><asp:dropdownlist id=ExpressionLogicDropdownlist runat="server" >
</asp:dropdownlist></TD></TR>
              <TR>
                <TD width=140><STRONG 
                  ><asp:label id=FilterTextLabel runat="server">Text :</asp:label></STRONG></TD>
                <TD><asp:textbox id=TextFilterTextbox runat="server"></asp:textbox></TD></TR>
              <TR>
                <TD width=140><STRONG 
                  ><asp:label id=ScoreLabel runat="server">Score :</asp:label></STRONG></TD>
                <TD><asp:textbox id=ScoreTextbox runat="server" Columns="2"></asp:textbox><asp:label id=ScoreRangeLabel runat="server">between</asp:label><asp:textbox id=ScoreMaxTextbox runat="server" Columns="2"></asp:textbox></TD></TR>
              <TR>
                <TD vAlign=top width=140><STRONG 
                  ><asp:label id=ConditionalMessageLabel runat="server">Message shown on submit :</asp:label></STRONG></TD>
                <TD><FTB:FREETEXTBOX 
                  id=ThankYouFreeTextBox runat="server" 
                  EnableToolbars="True" UseToolbarBackGroundImage="true" 
                  ToolbarStyleConfiguration="OfficeXP" Height="300px" 
                  SupportFolder="~/aspnet_client/FreeTextBox/" 
                  AutoGenerateToolbarsFromString="true" Width="600px" 
                  BreakMode="LineBreak" ToolbarLayout="FontFacesMenu,FontSizesMenu,FontForeColorsMenu|Bold,Italic,Underline,Strikethrough;Superscript,Subscript,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink,InsertImage,InsertRule|Cut,Copy,Paste;Undo,Redo,Print"></FTB:FREETEXTBOX><asp:Label id=ScoreTagLabel runat="server">Score total can be shown using the ::score:: tag inside your message</asp:Label></TD></TR></TABLE></TD></TR></TABLE><asp:button id=AddMessageConditionButton runat="server" Text="Add new message condition" Enabled="False" onclick="AddRuleButton_Click"></asp:button><asp:button id=UpdateMessageConditionButton runat="server" Text="Update message condition" onclick="UpdateMessageConditionButton_Click"></asp:button><asp:Button id=ConditionCancelButton runat="server" Text="Cancel / Back" onclick="ConditionCancelButton_Click"></asp:Button><br 
      ></td></tr></table>
</asp:Content>
